<?php
declare(strict_types=1);

namespace app\common\business;

use app\common\model\Website as WebsiteModel;

class Website extends CommonBase
{
    private $_websiteObj = null;

    public function __construct()
    {
        $this->_websiteObj = new WebsiteModel();
    }

    public function getAllWebsite(array $where = []): array
    {
        $rows = [];
        try {
            $rows = $this->_websiteObj->getAllWebsite($where);
        } catch (\Exception $e) {
            logErr('读取所有站点失败', sprintf('websiteCode:%s,method:%s,err:%s', $this->_websiteCode, __METHOD__, $e->getMessage()));
        }

        return $rows;
    }


}
